<?php

namespace app\index\model;

use app\model\Model;

class Index extends Model
{
  public $c_main = 'index';
  public $db;

  function __construct()
  {
    $this->db = $GLOBALS['db'];
  }

  function index()
  {
    $this->tpl('', [
      'db' => $this->db,
    ]);
  }

  function __destruct()
  {
  }
}